home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-04-19 | 2.9 KB | 150 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: Locrian:WWDCSun:CPlusPlus:Shell.xh.
- * Generated using:
- * SOM Precompiler somipc: somc/smemit.c
- * SOM Emitter emitxh.dll: somc/smmain.c
- */
-
- /*
- *
- * Theory of Operation
- *
- *
- * Classes defined in this interface
- *
- */
-
-
- #ifndef SOM_ODShell_xh
- #define SOM_ODShell_xh
-
- class ODShell;
-
- #define ODShell_MajorVersion 0
- #define ODShell_MinorVersion 0
-
- /* C++ som defs */
- #include <somcls.xh>
-
- /* Include C++ parent defs */
- #ifndef SOM_ODObject_xh
- #include <ODObject.xh>
- #endif
-
- #ifndef ODShell_API
- #define ODShell_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
- class ODExtension;
-
- /*
- * End of user-defined types.
- */
-
- #if applec ^ PRAGMA_LIB_EXPORT
- #pragma lib_export on
- #endif
-
-
- /* A procedure to create the ODShell Class */
- SOMEXTERN SOMClass * SOMLINK ODShellNewClass(
- integer4 majorVersion,
- integer4 minorVersion);
-
- /* The API to the ODShell class object, and the methods it introduces. */
- typedef struct ODShellClassDataStructure {
- SOMClass *classObject;
- somMToken InitShell;
- somMToken Run;
- } ODShellClassDataStructure;
- #ifdef SOM_NO_DATA_EXPORTS
- SOMEXTERN ODShellClassDataStructure * ODShellGetClassData ( void );
- # undef ODShellClassData
- # define ODShellClassData (*ODShellGetClassData())
- #else
- SOMEXTERN ODShellClassDataStructure ODShellClassData;
- #endif /* SOM_NO_DATA_EXPORTS */
-
- #if applec ^ PRAGMA_LIB_EXPORT
- #pragma lib_export off
- #endif
-
- #define _ODShell ODShellClassData.classObject
-
- /* The API to parentMtabs for ODShell, and the instance data it introduces. */
- SOMEXTERN struct ODShellCClassDataStructure {
- somMethodTabs parentMtab;
- somDToken instanceDataToken;
- } ODShellCClassData;
-
- /*
- * -- Typedefs for Procedures that support Methods introduced by ODShell
- */
- SOMEXTERN {
- typedef void (* SOMLINK somTD_ODShell_InitShell)(ODShell *somSelf, Environment *ev);
- typedef void (* SOMLINK somTD_ODShell_Run)(ODShell *somSelf, Environment *ev);
- }
-
- #endif /* ODShell_API */
-
-
- /*
- * -- Method Tokens are Thunks
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for ODShell
- */
- class ODShell : public ODObject
- {
- public:
-
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- if (!ODShellClassData.classObject)
- ODShellNewClass(ODShell_MajorVersion,ODShell_MinorVersion);
- return (void *)
- ((somTD_SOMClass_somNew)
- somresolve_((SOMObject *)((void*)(ODShellClassData.classObject)),
- SOMClassClassData.somNew))
- ((SOMClass *)((void*)(ODShellClassData.classObject)));
- }
-
- void operator delete(void * obj)
- {
- ((SOMObject *)obj)->somFree();
- }
-
- /* public method: InitShell */
- void InitShell(Environment *ev)
- {
- SOM_Resolve(this,ODShell,InitShell)
- (this,ev);
- }
-
-
- /* public method: Run */
- void Run(Environment *ev)
- {
- SOM_Resolve(this,ODShell,Run)
- (this,ev);
- }
-
-
-
- }; /* ODShell */
-
-
-
- #endif /* SOM_ODShell_xh */
-